package com.pengshun.modules.api.order.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pengshun.modules.api.coal.validator.First;
import com.pengshun.modules.api.coal.validator.Fourth;
import com.pengshun.modules.api.coal.validator.Second;
import com.pengshun.modules.api.coal.validator.Third;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * table name:  ps_order_allot_transport
 * author name: llg
 * create time: 2020-12-10 10:29:05
 */
@Data
public class OrderAllotTransportDto {

    @NotNull(message = "分配id不能为空", groups = {Second.class, Third.class})
    private Long orderAllotTransportId;
    @NotNull(message = "订单id不能为空", groups = {First.class, Fourth.class})
    private Long orderId;
    @NotNull(message = "分配人员id不能为空", groups = {First.class})
    private Long transportUserId;
    @NotNull(message = "运费不能为空", groups = {First.class,Second.class})
    private BigDecimal freight;
    @NotNull(message = "总运费不能为空", groups = {First.class,Second.class})
    private BigDecimal totalFreight;
    @NotNull(message = "分配数量不能为空", groups = {Fourth.class})
    private Integer status;
    @NotNull(message = "分配数量不能为空", groups = {First.class})
    private Integer allotNumber;
    private Long allotUserId;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date allotTime;
    private String remark;
    private String doorImg;
    private String name;
    private Date backTime;
    private Date sureTime;
    private Date issueTime;
    private String orderNo;
    private Integer isApply;

}

